THREESCALE-11441 only validate oidc setting if authentication method is set to oidc#1568
Open
tkan145 wants to merge 2 commits into3scale:masterfrom
Open
THREESCALE-11441 only validate oidc setting if authentication method is set to oidc#1568tkan145 wants to merge 2 commits into3scale:masterfrom
tkan145 wants to merge 2 commits into3scale:masterfrom
Conversation
842cd5f to
2bd8459
Compare
2bd8459 to
121e6ef
Compare
josemigallas
reviewed
Feb 3, 2026
josemigallas
left a comment
There was a problem hiding this comment.
LGTM with some minor suggestions
Comment on lines
+26
to
+27
| -- Only fetch OIDC configuration if authentication method is set to 'oidc' | ||
| local authentication = proxy.authentication_method or service.backend_version |
There was a problem hiding this comment.
I think this comment could go away by simply extracting a guard from the code below:
Suggested change
| -- Only fetch OIDC configuration if authentication method is set to 'oidc' | |
| local authentication = proxy.authentication_method or service.backend_version | |
| local authentication = proxy.authentication_method or service.backend_version | |
| if authentication ~= 'oidc' then | |
| return nil | |
| end |
The if authentication part seems redundant anyway (nil is already unequal to 'oidc').
Contributor
Author
There was a problem hiding this comment.
The authentication can take the following values:
1: user_key2: app_id/app_keyoidc: OIDCnil: But if theoidc_issuer_endpointis provided, then in this case we don't want to query OIDC endpoint
Therefore, an if statement is needed.
There was a problem hiding this comment.
But is the first condition of the statement needed?
josemigallas
approved these changes
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fix https://issues.redhat.com/browse/THREESCALE-11441
Verification steps
apicast-config.jsonas followand docker-compose
the gateway should output the following
Check the log again and you should not see the same error